package com.test.restruant.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.test.restruant.pojo.Table;
import com.test.restruant.dao.TableDAO;
import com.test.restruant.service.TableService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service //这个注解是dubbo的注解，不是spring的
public class TableServiceImpl implements TableService {
    @Autowired
    private TableDAO tableDAO;

    @Override
    public List<Table> getTableList() {
        System.out.println(11111);
        return tableDAO.getTableList();
    }
}
